Install Multiple Python Versions for Specific Project
-
Home project: https://github.com/pyenv/pyenv
-
Reference to: https://www.tecmint.com/pyenv-install-and-manage-multiple-python-versions-in-linux/
Install Multiple Python Versions for Specific Project
Home project: https://github.com/pyenv/pyenv
Reference to: https://www.tecmint.com/pyenv-install-and-manage-multiple-python-versions-in-linux/
// polyfill window.getMatchedCSSRules() in Chrome | |
if ( typeof window.getMatchedCSSRules !== 'function' ) { | |
var ELEMENT_RE = /[\w-]+/g, | |
ID_RE = /#[\w-]+/g, | |
CLASS_RE = /\.[\w-]+/g, | |
ATTR_RE = /\[[^\]]+\]/g, | |
// :not() pseudo-class does not add to specificity, but its content does as if it was outside it | |
PSEUDO_CLASSES_RE = /\:(?!not)[\w-]+(\(.*\))?/g, | |
PSEUDO_ELEMENTS_RE = /\:\:?(after|before|first-letter|first-line|selection)/g; | |
// convert an array-like object to array |
/* | |
* Created by C.J. Kimberlin | |
* Refactored by Mane Function | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2019-2023 | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal |
// ==UserScript== | |
// @name Aternos Anti Anti-adblock | |
// @namespace r0630hh1edcuum5397kimyc0ucwy2h3psn4c6r1u4j | |
// @version 0.1.23 | |
// @description Fuck anti-adblock from the free hosting minecraft servers Aternos.org. Parry this you filthy casual! | |
// @author Angry Developer against excessive ADs | |
// @source https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
// @supportURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
// @updateURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js | |
// @downloadURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js |
# Make sure you have enough Fertilizer before starting. | |
def do_maze(iterations=1): | |
# Define some geometry help for later | |
opp = {North: South, East: West, | |
South: North, West: East} | |
dx = {North: 0, East: 1, South: 0, West: -1} | |
dy = {North: 1, East: 0, South: -1, West: 0} | |
# Start a Maze. | |
harvest() |
现整理收集C++世界里那些“牛人”的个人博客。凡三类:一是令人高山仰止的大牛,对C++语言本身产生过深远的影响的人;二是C++运用炉火纯青的高手,有原创性的技术干货;三是中文世界里的C++牛人。
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# | |
# In jurisdictions that recognize copyright laws, the author or authors | |
# of this software dedicate any and all copyright interest in the | |
# software to the public domain. We make this dedication for the benefit |
## Read jsonl.zst file as dataframe in python | |
!pip install | |
##################### | |
import io | |
import pandas as pd | |
import zstandard as zst | |
def read_jsonl_zst(file_path): | |
with open(file_path, 'rb') as file: | |
decompressor = zstd.ZstdDecompressor() |
import subprocess | |
import os | |
import time | |
print(1) | |
while True: | |
# out_bytes = subprocess.check_output(['C:/Program Files/NVIDIA Corporation/NVSMI/nvidia-smi.exe']) | |
out_bytes = subprocess.check_output(['nvidia-smi']) | |
out_text = out_bytes.decode('utf-8') | |
os.system('cls') | |
print(out_text) |